package com.jeethink.erp.buy.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.jeethink.common.core.domain.entity.SysUser;
import com.jeethink.erp.commodity.domain.TbCommodity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.jeethink.common.annotation.Excel;
import com.jeethink.common.core.domain.BaseEntity;

/**
 * 进货对象 tb_buy
 * 
 * @author ypr
 * @date 2021-05-31
 */
public class TbBuy extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 进货编号 */
    private Long buyId;

    /** 进货时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "进货时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date comeDate;

    /** 验货人 */
    @Excel(name = "验货人")
    private Long userId;

    /** 进货商品id */
    @Excel(name = "进货商品id")
    private Long commodityId;
/*
    *//** 进价 *//*
    @Excel(name = "进价")
    private BigDecimal purchasePrice;*/

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    //进货数量
    private Integer purchaseNum;

    //用户实体
    private SysUser sysUser;
    //商品实体
    private TbCommodity tbCommodity;

    private String warehouseYesNo;


    public String getWarehouseYesNo() {
        return warehouseYesNo;
    }

    public void setWarehouseYesNo(String warehouseYesNo) {
        this.warehouseYesNo = warehouseYesNo;
    }

    public SysUser getSysUser() {
        return sysUser;
    }

    public void setSysUser(SysUser sysUser) {
        this.sysUser = sysUser;
    }

    public TbCommodity getTbCommodity() {
        return tbCommodity;
    }

    public void setTbCommodity(TbCommodity tbCommodity) {
        this.tbCommodity = tbCommodity;
    }

    public Integer getPurchaseNum() {
        return purchaseNum;
    }

    public void setPurchaseNum(Integer purchaseNum) {
        this.purchaseNum = purchaseNum;
    }


    public void setBuyId(Long buyId)
    {
        this.buyId = buyId;
    }

    public Long getBuyId() 
    {
        return buyId;
    }
    public void setComeDate(Date comeDate) 
    {
        this.comeDate = comeDate;
    }

    public Date getComeDate() 
    {
        return comeDate;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setCommodityId(Long commodityId) 
    {
        this.commodityId = commodityId;
    }

    public Long getCommodityId() 
    {
        return commodityId;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("buyId", getBuyId())
            .append("comeDate", getComeDate())
            .append("userId", getUserId())
            .append("commodityId", getCommodityId())
            .append("remark", getRemark())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
